<html>
<body>
Reports calls to <code>Collection&lt;T&gt;.count()</code>.
<p>
    This function call can be replaced with <code>.size</code>.
</p>
<p>
    <code>.size</code> form ensures that the operation is O(1) and won't allocate extra objects, whereas
    <code>count()</code> could be confused with <code>Iterable&lt;T&gt;.count()</code>, which is O(n) and allocating.
    <br>
</p>
<p><b>Example:</b></p>
<pre><code>  fun foo() {
      var list = listOf(1,2,3)
      list.count() // replaceable 'count()'
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>  fun foo() {
      var list = listOf(1,2,3)
      list.size
  }
</code></pre>
</body>
</html>
